package com.qianyucc.blog.model.dto;

import lombok.*;

import javax.validation.constraints.*;

/**
 * @author lijing
 * @date 2019-10-13 10:53
 * @description 前端向后端传输的评论信息
 */
@Data
public class CommentDTO {
    private Long id;
    private String articleId;
    private Long parentId;
    @NotNull(message = "必须增指定评论者")
    private String commentator;
    @NotBlank(message = "必须输入评论内容")
    private String content;
    @NotNull(message = "必须指定评论类型")
    private Integer type;
}
